/*
* Copyright 2011 Pavel Kozhin 
*
* Licensed under the Apache License, Version 2.0 (the "License"); 
* you may not use this file except in compliance with the License. 
* You may obtain a copy of the License at 
* 
* http://www.apache.org/licenses/LICENSE-2.0
* 
* Unless required by applicable law or agreed to in writing, software 
* distributed  under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
* See the License for the specific language governing permissions and 
* limitations under the License.
*
* Author: Pavel Kozhin.
*/
package org.etherframework.core
{
	import flash.display.DisplayObject;
	import flash.system.ApplicationDomain;
	
	import org.etherframework.IEther;
	import org.etherframework.common.IPersistent;
	import org.etherframework.common.command.ICommands;
	import org.etherframework.common.wire.IWiring;
	import org.etherframework.core.common.IControllable;
	import org.etherframework.core.module.ModuleConfig;
	import org.etherframework.dependency.IDependencies;
	import org.etherframework.mediator.IMediators;

	public interface IModule extends IControllable, IPersistent
	{
		function initialize(config:ModuleConfig):void;
		
		function get applicationDomain():ApplicationDomain;
		
		function get initialized():Boolean;
		
		function get ether():IEther;
		
		function get view():DisplayObject;
		
		function get config():EtherConfig;
		
		function start():void;
		
		function get dependencies():IDependencies;
		
		function get wiring():IWiring;
		
		function get mediators():IMediators;
		
		function get commands():ICommands;
		
		function get access():String;
		function set access(value:String):void;
		
		function get domain():String;
		function set domain(value:String):void;
		
		function get started():Boolean;
		function set started(value:Boolean):void;
		
	}
}